﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="PasswordRecovery.aspx.cs" Inherits="PasswordRecovery" Title="Password Recovery - Information Literacy Education" %>

<%@ Register TagPrefix="uc" TagName="UpdateProgress" Src="~/UserControls/UpdateProgress.ascx" %>
<%@ Register TagPrefix="uc" TagName="ModalPopupMessage" Src="~/UserControls/ModalPopupMessage.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server">
    <uc:UpdateProgress ID="updateProgress" runat="server" />
    <asp:UpdatePanel ID="UpdatePanelModalPopupMessage" runat="server">
        <ContentTemplate>
            <uc:ModalPopupMessage ID="ModalPopupMessage" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <h1>
        Password Recovery
    </h1>
    <div class="indent20">
        <asp:Wizard ID="WizardPasswordRecovery" runat="server" ActiveStepIndex="0" DisplaySideBar="False" CssClass="MinWidth" NavigationButtonStyle-CssClass="fancyButton" OnFinishButtonClick="WizardPasswordRecovery_FinishButtonClick"
            OnNextButtonClick="WizardPasswordRecovery_NextButtonClick">
            <WizardSteps>
                <asp:WizardStep ID="WizardStep1" runat="server" Title="Step 1">
                    Please enter your email address below.
                    <br />
                    <table>
                        <tr>
                            <td class="tableLeftHeader">
                                * Email:
                            </td>
                            <td class="tableItem">
                                <asp:TextBox ID="txtEmail" runat="server" MaxLength="50" Height="22px" Width="273px"
                                    ValidationGroup="PasswordRecovery"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Email Address is Required."
                                    Display="Dynamic" ControlToValidate="txtEmail" ValidationGroup="PasswordRecovery"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="RegularExpressionValidator"
                                    SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                    ControlToValidate="txtEmail" ValidationGroup="PasswordRecovery" Display="Dynamic">Please Enter a Vaild Email Address</asp:RegularExpressionValidator>
                            </td>
                        </tr>
                    </table>
                </asp:WizardStep>
                <asp:WizardStep ID="WizardStep2" runat="server" Title="Step 2">
                    <table>
                        <tr>
                            <td class="tableLeftHeader">
                                Security Question :
                            </td>
                            <td class="tableItem">
                                <asp:Label ID="lblSecurityQuestion" runat="server" Text="Label"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="tableLeftHeader">
                                Answer to Security Question :
                            </td>
                            <td class="tableItem">
                                <asp:TextBox ID="txtSecurityAnswer" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Security Answer is required."
                                    Display="Dynamic" ControlToValidate="txtSecurityAnswer"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="tableLeftHeader">
                                New Password :
                            </td>
                            <td class="tableItem">
                                <asp:TextBox ID="txtNewPassword" runat="server" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="New Password is required."
                                    Display="Dynamic" ControlToValidate="txtNewPassword"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                    </table>
                </asp:WizardStep>
                <asp:WizardStep ID="WizardStep3" runat="server">
                    <div style="min-width: 600px; text-align: center;">
                        <h2>
                            Your Password has been reset. Thank you.
                        </h2>
                        <br />
                        <br />
                        <asp:HyperLink ID="hyplnkGoToLoginScreen" runat="server" NavigateUrl="~/Login.aspx" Font-Size="Medium">Go Back to Login Screen</asp:HyperLink>
                    </div>
                </asp:WizardStep>
            </WizardSteps>
            <NavigationButtonStyle CssClass="fancyButton"></NavigationButtonStyle>
            <StepNavigationTemplate>
                <asp:Button ID="StepPreviousButton" runat="server" CausesValidation="False" CommandName="MovePrevious"
                    CssClass="fancyButton" Text="Previous" />
                <asp:Button ID="StepNextButton" runat="server" CommandName="MoveNext" CssClass="fancyButton"
                    Text="Next" />
            </StepNavigationTemplate>
        </asp:Wizard>
    </div>
</asp:Content>
